import {axiosGet} from '@/libs/https';


function getData(type){
return  new Promise((resolve,reject)=>{
    axiosGet({
        url:`/api/toutiao/index?type=${type}`,
    success(data){
        resolve(data.data.result.data);
       
    },
    error(err){
        reject(err);
    },

    });
})
}

export {
    getData
}